package com.demo.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.demo.common.domin.User;
import com.demo.common.service.UserService;
import com.demo.provider.dao.UserDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: UserImpl
 * @Package: com.demo.provider.service.impl
 * @Description:
 * @Datetime: 2020/7/10   17:09
 * @author: kaishun.zhou
 */
@Service(version = "1.0.0")
public class UserImpl implements UserService {


/*    @Resource
    private UserMapper userMapper;*/

    @Resource
    private UserDao userDao;


    @Override
    public List<User> findAll() {
        System.out.println("进入提供者实现体");
        List<User> list = userDao.findAll();
        System.out.println(list.size());
        return list;
    }
}
